package rhc.taskSchedule.entity.taskSchedule;

import org.springframework.data.mongodb.core.mapping.Field;

import rhc.taskSchedule.entity.TaskSchedule;

public class IntervalForeverTaskSchedule extends TaskSchedule{

	public static final String COLUMN_INTERVAL="interval";
	
	public IntervalForeverTaskSchedule(){
		super(ScheduleType.INTERVAL_FOREVER.typeCode);
	}
	
	public IntervalForeverTaskSchedule(String scheduleCode) {
		super(scheduleCode);
	}
	
	/**
	 * 运行间隔，以秒为单位
	 */
	@Field(value=COLUMN_INTERVAL)
	private long interval;

	public long getInterval() {
		return interval;
	}

	public void setInterval(long interval) {
		this.interval = interval;
	}

}
